package spaceinvaders;

import javax.swing.ImageIcon;

public class Missile extends Sprite {

    private String missile = "spacepix/missile.jpg";
    private final int H_SPACE = 8;
    private final int V_SPACE = 2;

    public Missile() {
    }

    public Missile(int x, int y) {

        ImageIcon missileImage = new ImageIcon(missile);
        setImage(missileImage.getImage());
        setX(x + H_SPACE);
        setY(y - V_SPACE);
    }
}